﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ESupervision.Models
{
    public class ForumReply
    {

        public int ForumReplyID { get; set; }

        [Required]
        [MaxLength(8000)]
        public string ForumReplyContent { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime ForumReplyPostedTime { get; set; }

        [ForeignKey("ForumReplyTopic")]
        public int ForumTopicID { get; set; }
        public virtual ForumTopic ForumReplyTopic { get; set; }

        [ForeignKey("ForumReplyPoster")]
        public string ForumReplyPosterID { get; set; }
        public virtual ApplicationUser ForumReplyPoster { get; set; }
    }
}